unsigned int total;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  delay(1000);
  total = 0;
  for(int i = 0; i < 100; i++)
  {
    total += analogRead(A2);
    delay(1);
  }
  total /= 100;
  Serial.println(total);
}
